using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_AnimatBase_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.AnimatBase);
            args = new Type[]{};
            method = type.GetMethod("get_DataContext", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_DataContext_0);
            args = new Type[]{typeof(System.Object)};
            method = type.GetMethod("set_DataContext", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_DataContext_1);
            args = new Type[]{};
            method = type.GetMethod("get_Delay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Delay_2);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_Delay", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Delay_3);
            args = new Type[]{};
            method = type.GetMethod("get_Time", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Time_4);
            args = new Type[]{typeof(System.Single)};
            method = type.GetMethod("set_Time", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Time_5);
            args = new Type[]{};
            method = type.GetMethod("Play", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Play_6);
            args = new Type[]{};
            method = type.GetMethod("Pause", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Pause_7);
            args = new Type[]{typeof(huqiang.AnimatBase), typeof(UnityEngine.Vector2)};
            method = type.GetMethod("SetParabola", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetParabola_8);
            args = new Type[]{typeof(huqiang.AnimatBase), typeof(System.Single)};
            method = type.GetMethod("SetArc", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetArc_9);
            args = new Type[]{typeof(huqiang.AnimatBase), typeof(System.Single), typeof(System.Single)};
            method = type.GetMethod("SetSArc", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetSArc_10);

            field = type.GetField("Loop", flag);
            app.RegisterCLRFieldGetter(field, get_Loop_0);
            app.RegisterCLRFieldSetter(field, set_Loop_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Loop_0, AssignFromStack_Loop_0);
            field = type.GetField("AutoHide", flag);
            app.RegisterCLRFieldGetter(field, get_AutoHide_1);
            app.RegisterCLRFieldSetter(field, set_AutoHide_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_AutoHide_1, AssignFromStack_AutoHide_1);
            field = type.GetField("Linear", flag);
            app.RegisterCLRFieldGetter(field, get_Linear_2);
            app.RegisterCLRFieldSetter(field, set_Linear_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Linear_2, AssignFromStack_Linear_2);
            field = type.GetField("DataCache", flag);
            app.RegisterCLRFieldGetter(field, get_DataCache_3);
            app.RegisterCLRFieldSetter(field, set_DataCache_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_DataCache_3, AssignFromStack_DataCache_3);
            field = type.GetField("points", flag);
            app.RegisterCLRFieldGetter(field, get_points_4);
            app.RegisterCLRFieldSetter(field, set_points_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_points_4, AssignFromStack_points_4);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.AnimatBase());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.AnimatBase[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_DataContext_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.DataContext;

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance, true);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method, true);
        }

        static StackObject* set_DataContext_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Object @value = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DataContext = value;

            return __ret;
        }

        static StackObject* get_Delay_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Delay;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_Delay_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Delay = value;

            return __ret;
        }

        static StackObject* get_Time_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Time;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_Time_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Time = value;

            return __ret;
        }

        static StackObject* Play_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Play();

            return __ret;
        }

        static StackObject* Pause_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.AnimatBase instance_of_this_method = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Pause();

            return __ret;
        }

        static StackObject* SetParabola_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Vector2 @point = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.AnimatBase @ani = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = huqiang.AnimatBase.SetParabola(@ani, @point);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* SetArc_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @r = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.AnimatBase @ani = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = huqiang.AnimatBase.SetArc(@ani, @r);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* SetSArc_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @y = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Single @x = *(float*)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.AnimatBase @ani = (huqiang.AnimatBase)typeof(huqiang.AnimatBase).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = huqiang.AnimatBase.SetSArc(@ani, @x, @y);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


        static object get_Loop_0(ref object o)
        {
            return ((huqiang.AnimatBase)o).Loop;
        }

        static StackObject* CopyToStack_Loop_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.AnimatBase)o).Loop;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static void set_Loop_0(ref object o, object v)
        {
            ((huqiang.AnimatBase)o).Loop = (System.Boolean)v;
        }

        static StackObject* AssignFromStack_Loop_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Boolean @Loop = ptr_of_this_method->Value == 1;
            ((huqiang.AnimatBase)o).Loop = @Loop;
            return ptr_of_this_method;
        }

        static object get_AutoHide_1(ref object o)
        {
            return ((huqiang.AnimatBase)o).AutoHide;
        }

        static StackObject* CopyToStack_AutoHide_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.AnimatBase)o).AutoHide;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static void set_AutoHide_1(ref object o, object v)
        {
            ((huqiang.AnimatBase)o).AutoHide = (System.Boolean)v;
        }

        static StackObject* AssignFromStack_AutoHide_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Boolean @AutoHide = ptr_of_this_method->Value == 1;
            ((huqiang.AnimatBase)o).AutoHide = @AutoHide;
            return ptr_of_this_method;
        }

        static object get_Linear_2(ref object o)
        {
            return ((huqiang.AnimatBase)o).Linear;
        }

        static StackObject* CopyToStack_Linear_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.AnimatBase)o).Linear;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Linear_2(ref object o, object v)
        {
            ((huqiang.AnimatBase)o).Linear = (huqiang.LinearTransformation)v;
        }

        static StackObject* AssignFromStack_Linear_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.LinearTransformation @Linear = (huqiang.LinearTransformation)typeof(huqiang.LinearTransformation).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            ((huqiang.AnimatBase)o).Linear = @Linear;
            return ptr_of_this_method;
        }

        static object get_DataCache_3(ref object o)
        {
            return ((huqiang.AnimatBase)o).DataCache;
        }

        static StackObject* CopyToStack_DataCache_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.AnimatBase)o).DataCache;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_DataCache_3(ref object o, object v)
        {
            ((huqiang.AnimatBase)o).DataCache = (System.Single[])v;
        }

        static StackObject* AssignFromStack_DataCache_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single[] @DataCache = (System.Single[])typeof(System.Single[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.AnimatBase)o).DataCache = @DataCache;
            return ptr_of_this_method;
        }

        static object get_points_4(ref object o)
        {
            return ((huqiang.AnimatBase)o).points;
        }

        static StackObject* CopyToStack_points_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.AnimatBase)o).points;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_points_4(ref object o, object v)
        {
            ((huqiang.AnimatBase)o).points = (UnityEngine.Vector3[])v;
        }

        static StackObject* AssignFromStack_points_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector3[] @points = (UnityEngine.Vector3[])typeof(UnityEngine.Vector3[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.AnimatBase)o).points = @points;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.AnimatBase();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
